using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using GameSite.Models.Mapping;

namespace GameSite.Models
{
    public partial class GameA4Context : DbContext
    {
        static GameA4Context()
        {
            Database.SetInitializer<GameA4Context>(null);
        }

        public GameA4Context()
            : base("Name=GameA4Context")
        {
        }

        public DbSet<DownLoad> DownLoads { get; set; }
        public DbSet<GameIntro> GameIntroes { get; set; }
        public DbSet<GameNew> GameNews { get; set; }
        public DbSet<GameBan> GameBans { get; set; }
        public DbSet<SiteConfig> SiteConfigs { get; set; }
        public DbSet<Activity> Activities { get; set; }
        public DbSet<ContactNote> ContactNote { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new DownLoadMap());
            modelBuilder.Configurations.Add(new GameIntroMap());
            modelBuilder.Configurations.Add(new GameNewMap());
            modelBuilder.Configurations.Add(new GameBanMap());
            modelBuilder.Configurations.Add(new SiteConfigMap());
            modelBuilder.Configurations.Add(new ContactNoteMap());
            modelBuilder.Configurations.Add(new ActivityMap());
        }
    }
}
